import request from '@/utils/request'
import URL from '@/api/baseUrl'
export default class BookingManagement {
  /**
   * 查询列表
   */
  static list(data = {}) {
    return request.get(`${URL.ocean}/ocean-booking-space/list`, data)
  }
  /**
   * 查询详情
   */
  static getInfo(id) {
    return request.get(`${URL.ocean}/ocean-booking-space/getInfo/${id}`)
  }
  /**
   * 删除
   */
  static remove(ids) {
    return request.delete(`${URL.ocean}/ocean-booking-space/remove`, ids)
  }
  /**
   * 新增
   */
  static add(data = {}) {
    return request.post(`${URL.ocean}/ocean-booking-space/add`, data)
  }
  /**
   * 修改
   */
  static edit(data = {}) {
    return request.put(`${URL.ocean}/ocean-booking-space/edit`, data)
  }

  static printOceanBooking(data) {
    return request.post(`${URL.ocean}/ocean-booking-space/printOceanBooking`, data, {
      responseType: "blob",
    })
  }

  static pendingList(data) {
    return request.get(`${URL.ocean}/ocean-booking-space-details/pendingList`, data)
  }

  static batchSaveOrUpdate(data) {
    return request.post(`${URL.ocean}/ocean-booking-space-details/batchSaveOrUpdate`, data)
  }


}
